Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

Latest commit

 

History

History
12 lines (8 loc) · 323 Bytes

10.3 - Process->name.md

File metadata and controls

12 lines (8 loc) · 323 Bytes

Process->name

修改进程名称。此函数是swoole_set_process_name的别名。

$process->name("php server.php: worker");
  • 在执行exec后,进程名称会被新的程序重新设置

此方法在1.7.9以上版本可用
name方法应当在start之后的子进程回调函数中使用